/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.time.LocalDate;

/**
 * <p>Project: jse2204 - C4
 * <p>Powered by webrx On 2022-09-07 10:57:39
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class C4 {
       /*声明属性，在实例化对象会自动的初始化，对象一般是null*/
    int id;
    private String name = "李四";
    protected LocalDate birth;
    public double money = 100;
    String[] addrs ;
    public static int age = 18; /* 类变量 */


    /*私有属性 一般建立 按下alt + insert 选择 */


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static void main(String[] args) {
        System.out.println(age);

        C4 c = new C4();
        System.out.println(c.id);
        System.out.println(c.birth);
        System.out.println(c.addrs);
        System.out.println(c.money);
        System.out.println(c.getName());

    }

}
